package edu.cs.usask.ca.silver.plugin.rcp.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import edu.cs.usask.ca.silver.plugin.rcp.views.projectviewer.CustomProjectView;
import edu.cs.usask.ca.silver.plugin.rcp.views.projectviewer.ProjectView;
import edu.cs.usask.ca.silver.plugin.rcp.views.visualization.VisualWorkspaceView;

public class SilverPerspective implements IPerspectiveFactory {

	public static final String ID = "edu.cs.usask.ca.silver.plugin.rcp.perspectives.silver";

	public void createInitialLayout(IPageLayout layout) {
//		layout.setEditorAreaVisible(true);
		//layout.addStandaloneView(VisualWorkspaceView.ID, true, IPageLayout.RIGHT, 0.30f, layout.getEditorArea());
		//layout.getViewLayout(VisualWorkspaceView.ID).setCloseable(false);

//		layout.addStandaloneView(ProjectView.ID, true, IPageLayout.LEFT, 0.50f,
//				layout.getEditorArea());
//		
//		layout.addStandaloneView(CustomProjectView.ID, true, IPageLayout.BOTTOM, 0.40f,
//				ProjectView.ID);

		// for sticky view (it will be available in every view

		// this is for the editor
		// layout.addPlaceholder("edu.cs.usask.ca.silver.plugin.rcp.projectview",
		// IPageLayout.RIGHT, 0.76f, layout.getEditorArea());
	}
}
